package com.cino.demos.sourceCode.AOPdemo;

public class BeforeAdviceInterceptor implements MethodInterceptor {
    private final String adviceName;
    
    public BeforeAdviceInterceptor(String adviceName) {
        this.adviceName = adviceName;
    }
    
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("  🔧 [" + adviceName + "] 前置通知执行");
        return invocation.proceed(); // 继续执行下一个拦截器
    }
}